<form action="<?php echo url_for("comprobante/registrarPago") ?>" method="post">
<table  width="80%" class="fuente8"  >
  <thead>
    <tr>
      <th>Fecha emision</th>
      <th>Tipo comprobante</th>
      <th>Vencimiento</th>
      <th>Número</th>
      <th>Importe</th>
      <th>Estado</th>
       <th>Imprimir</th>
      </tr>
  </thead>
   <tbody id="lineaResultado">
      
      <?php  $contador = 0;  $total = 0;
          foreach ($comprobantes as $comprobante): 
             if ($contador % 2) {
                        $fondolinea = "itemParTabla";
                    } else {
                        $fondolinea = "itemImparTabla";
                    }
               $situacion="";     
                   if( count( $comprobante->getPagoLinea())>0){
                      $situacion="Pagado";
                   }elseif( count( $comprobante->getPlanPagoLinea())>0){
                      $situacion="Plan de pago";
                   }
                    ?>
      <tr class="<?php echo $fondolinea ?>">
      <td  width="10%"align="center"><?php echo $comprobante->getFechaEmision() ?></td>
      <td width="15%"align="center"><?php echo $comprobante->getTipoComprobante()->getNombre()   ?></td>
      <td width="10%" align="center"><?php echo $comprobante->getVencimientos() ?></td>
      <td width="10%" align="center"><?php echo $comprobante->getNroComprobante() ?></td>
      <td width="10%"align="right"><?php echo number_format($comprobante->getImporteFactura(),2) ?></td>
      <td width="10%"align="center"><?php echo $situacion  ?></td>
      <td  width="7%"align="center">
          <!--<a onclick="var w=window.open(this.href,'popupWindow',' modal=yes,status=no,location=no,resizable=no,width=830,height=640,right=120,top=50,left=200,color=white');w.focus();" href="<?php echo url_for("comprobante/Imprimir?id=".$comprobante->getId())?>"><img title="Imprimir" src="/images/imprimir.png"></a>-->
      <a href="#"><img src="/images/imprimir.png" onclick="abrirVentana('<?php echo url_for("comprobante/Imprimir?id=".$comprobante->getId())?>','Imprimir','','830','640')"></a>
      </td>
     </tr>
       <?php  $contador++; endforeach; ?>
   
  </tbody>
</table>
</form>